﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace DownloadMag.Core
{
    public interface IProtocolProvider
    {
        void Initialize();

        Stream CreateStream(ResourceLocation location, ProxySettings proxy, long initialPosition, long endPosition);

        RemoteFileInfo GetFileInfo(ResourceLocation location, ProxySettings proxy, out Stream stream);
    }
}
